export default {
  student_name: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
  student_number: [{ required: true, message: '手机号码不能为空', trigger: 'blur' }],
  student_birthday: [{ required: true, message: '出生日期不能为空', trigger: 'change' }],
  student_email: [
    { required: true, message: '请输入电子邮箱', type: 'text' },
    {
      pattern: /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,
      message: '邮箱格式错误',
      trigger: 'blur',
    },
  ],
  student_sex: [{ required: true, message: '性别不能为空', trigger: 'blur' }],
  student_class_id: [{ required: true, message: '班级不能为空', trigger: 'change' }],
}
